﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace MapEntities
{
    [Serializable]
    public abstract class LayerItemBehaviour
    {
        private ClickBehaviour leftClick = null;
        private ClickBehaviour rightClick = null;
        private ClickBehaviour doubleclick = null;
        public TransparencyLevel ItemTransparencyLevel { get; set; }
        public ClickBehaviour LeftMouseClick
        {
            get
            {
                if (leftClick == null)
                    leftClick = new ClickBehaviour();
                return leftClick;
            }

            set 
            {
                leftClick = value;
            }
        }

        public ClickBehaviour RightMouseClick
        {
            get
            {
                if (rightClick == null)
                    rightClick = new ClickBehaviour();
                return rightClick;
            }

            set
            {
                rightClick = value;
            }
        }

        public ClickBehaviour DoubleMouseClick
        {
            get
            {
                if (doubleclick == null)
                    doubleclick = new ClickBehaviour();
                return doubleclick;
            }

            set
            {
                doubleclick = value;
            }
        }
    }

    [Serializable]
    public class ShapeItemBehavior: LayerItemBehaviour
    {
    }

    [Serializable]
    public class SymbolItemBehavior : LayerItemBehaviour
    {
    }
}
